
module.exports = {
    devServer: {
        port: 8099,
        https: false,
        open: false,
        overlay: {
            warnings: false,
            errors: true
        },
        // 配置多个代理
        proxy: {
            '/dev-api': {
                target: `http://192.168.1.15:5001`,

                changeOrigin: true,
                pathRewrite: {
                    ['^' + '/dev-api']: ''
                }
            },
            '/socket.io/': {
                target: `http://192.168.1.15:5000`,

                changeOrigin: false
            }
        },
    },

    publicPath: './'
}
